// components/signItem/index.js
Component({
    behaviors: ['wx://form-field'],
    /**
     * 组件的属性列表
     */
    properties: {
        signpath: {
            type: String,
            value: '',
            observer: 'changeSignPathValue'
        },
        name: {
            type: String,
            value: ''
        },
        value: String,
        baseurl: String
    },

    /**
     * 组件的初始数据
     */
    data: {

    },

    /**
     * 组件的方法列表
     */
    methods: {
        changeSignPathValue(path) {
            console.log('path', path)
            this.setData({
                value: path
            })
            console.log('path-v', this.data.baseurl + this.data.value)

        },
        goToSignPage() {
            wx.navigateTo({
                url: '/pages/canvasSign/index?code=' + this.data.name
            })
        }
    }
})